package com.hzy.so.service.impl;

import com.hzy.common.entities.CommonResult;
import com.hzy.sample.entities.Payment;
import com.hzy.so.service.PaymentService;
import org.springframework.stereotype.Component;

/**
 * @author hzy
 * @since 2022/3/5 22:06
 */
@Component
public class PaymentServiceFallback implements PaymentService {

    @Override
    public CommonResult<Payment> load(String id) {
        return new CommonResult<>(431, "this is from PaymentServiceFallback. your request is fallback.", null);
    }

}
